package cn.touna.jss.modules.third.yixin.entity;


import cn.touna.risk.api.contraints.IdCard;
import cn.touna.risk.api.contraints.facet.First;
import cn.touna.risk.api.contraints.facet.Second;
import cn.touna.risk.api.domain.BaseDomain;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created with IntelliJ IDEA.
 * User: lijie
 * Email:lijiewj51137@touna.cn
 * Date: 2017/8/1
 * Time: 14:16
 */
public class YiXinRequestEntity extends BaseDomain {
    //报告ID
    private String applyId;

    //申请人姓名
    @NotBlank(message = "名字不能为空", groups = {First.class, Second.class})
    private String name;

    //身份证号
    @IdCard(message = "身份证校验失败", groups = {First.class, Second.class})
    private String idCard;

    //身份证号
    private String idNo;


    //申请人手机号
    private String mobile;

    //第三方接口类型
    private String dataCode;

    //返回结果json
    private String resultJson;

    //静态显示页面路径
    private String url;

    //备注
    private String remarks;

    //证件类型
    @NotBlank(message = "证件类型不能为空", groups = {First.class})
    private String idType;

    //查询原因
    @NotBlank(message = "查询原因不能为空", groups = {First.class, Second.class})
    private String queryReason;

    //email
    private String email;

    //qq
    private String qq;

    //家庭地址
    private String homeAddr;

    //家庭电话
    private String homeTel;

    //公司名称
    private String company;

    //公司地址
    private String companyAddr;

    //公司电话
    private String companyTel;

    //调用的接口名
    private String calledByMethod;

    //机构类型
    private String amountBusiness;
    private String bankNo;

    public String getAmountBusiness() {
        return amountBusiness;
    }

    public void setAmountBusiness(String amountBusiness) {
        this.amountBusiness = amountBusiness;
    }

    public String getBankNo() {
        return bankNo;
    }

    public void setBankNo(String bankNo) {
        this.bankNo = bankNo;
    }

    //判断是否调用借口的flag
    private Boolean flag;

    public String getApplyId() {
        return applyId;
    }

    public void setApplyId(String applyId) {
        this.applyId = applyId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
        this.idNo = idCard;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getDataCode() {
        return dataCode;
    }

    public void setDataCode(String dataCode) {
        this.dataCode = dataCode;
    }

    public String getResultJson() {
        return resultJson;
    }

    public void setResultJson(String resultJson) {
        this.resultJson = resultJson;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getIdType() {
        return idType;
    }

    public void setIdType(String idType) {
        this.idType = idType;
    }

    public String getQueryReason() {
        return queryReason;
    }

    public void setQueryReason(String queryReason) {
        this.queryReason = queryReason;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getHomeAddr() {
        return homeAddr;
    }

    public void setHomeAddr(String homeAddr) {
        this.homeAddr = homeAddr;
    }

    public String getHomeTel() {
        return homeTel;
    }

    public void setHomeTel(String homeTel) {
        this.homeTel = homeTel;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getCompanyAddr() {
        return companyAddr;
    }

    public void setCompanyAddr(String companyAddr) {
        this.companyAddr = companyAddr;
    }

    public String getCompanyTel() {
        return companyTel;
    }

    public void setCompanyTel(String companyTel) {
        this.companyTel = companyTel;
    }

    public String getCalledByMethod() {
        return calledByMethod;
    }

    public void setCalledByMethod(String calledByMethod) {
        this.calledByMethod = calledByMethod;
    }

    public Boolean getFlag() {
        return flag;
    }

    public void setFlag(Boolean flag) {
        this.flag = flag;
    }
}